package com.opencloud.iot.client.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.time.LocalTime;
import java.util.Date;

/**
 * 基础记录
 * @author yeyong
 */
@TableName("iot_task")
public class IotTask implements Serializable {

    private static final long serialVersionUID= 3678445380802306230L;

    /**
     * 自增长ID
     */
    @ApiModelProperty(value = "自增长ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 任务名称
     */
    @ApiModelProperty(value = "任务名称")
    private String taskname;

    /**
     * 任务类型 1=睡眠 2=运动
     */
    @ApiModelProperty(value = "任务类型 1=睡眠 2=运动")
    private Integer tasktype;

    /**
     * 园ID
     */
    @ApiModelProperty(value = "园ID")
    private Integer gid;

    /**
     * 园名称
     */
    @ApiModelProperty(value = "园名称")
    private String gname;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createtime;

    /**
     * 每日开始时间
     */
    @ApiModelProperty(value = "每日开始时间")
    private LocalTime starttime;

    /**
     * 每日结束时间
     */
    @ApiModelProperty(value = "每日结束时间")
    private LocalTime endtime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTaskname() {
        return taskname;
    }

    public void setTaskname(String taskname) {
        this.taskname = taskname;
    }

    public Integer getTasktype() {
        return tasktype;
    }

    public void setTasktype(Integer tasktype) {
        this.tasktype = tasktype;
    }

    public Integer getGid() {
        return gid;
    }

    public void setGid(Integer gid) {
        this.gid = gid;
    }

    public String getGname() {
        return gname;
    }

    public void setGname(String gname) {
        this.gname = gname;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public LocalTime getStarttime() {
        return starttime;
    }

    public void setStarttime(LocalTime starttime) {
        this.starttime = starttime;
    }

    public LocalTime getEndtime() {
        return endtime;
    }

    public void setEndtime(LocalTime endtime) {
        this.endtime = endtime;
    }

    @Override
    public String toString() {
        return "IotTask{" +
                "id=" + id +
                ", taskname=" + taskname +
                ", tasktype=" + tasktype +
                ", gid=" + gid +
                ", gname=" + gname +
                ", createtime=" + createtime +
                ", starttime=" + starttime +
                ", endtime=" + endtime +
                "}";
    }
}
